<?php
$adcReporter->report(array(
        'data'=>$documentos,
        'table'=>array('width'=>'100%','border'=>0,'celpadding'=>0,'cellspacing'=>0),
        'params'=>array('date'=>$date),
        'bands'=>array(
                'pageHeader'=>array('type'=>'header','parent'=>'page', 'data'=>array(
                        '[USER.Empresa.razon_social] - [USER.CentroDist.descripcion]'=>array('align'=>'left','colspan'=>2),
                        'Fecha: [DATE]'=>array('align'=>'right','colspan'=>1) )),
                'title'=>array('type'=>'title','data'=>array(
                        'SALDO DEL ALUMNO AL [PARAMS.date]'=>3),
                        'align'=>'center','strong'=>true,'header'=>'h2'),
                'master'=>array('type'=>'master','data'=>array(
                        '[Cliente.codigo]',
                        '[DocumentoVenta.nombre_cliente]',                        
                        '[DocumentoVenta.saldo]'=>array('align'=>'right','datatype'=>'float','default'=>0)                        
                ),'align'=>'left'),
                'masterHeader'=>array(
                        'type'=>'header',
                        'parent'=>'master',
                        'align'=>'center',
                        'border'=>array('bottom'=>true),
                        'data'=>array(
                            'COD.'=>array('width'=>20),
                            'CLIENTE',                            
                            'SALDO'=>array('align'=>'right', 'width'=>48)
                        )					
                    ),
                'masterFooter'=>array('type'=>'footer','parent'=>'master','border'=>array('top'=>true),'data'=>array(
                        'Total'=>2,
                        '[BAND.master.TOTALS.2]'=>array('align'=>'right','datatype'=>'float')					
                ),'strong'=>true),        
                'aulaGroup'=>array('type'=>'header','parent'=>'master','group'=>'[Alumno.nivel_id][Alumno.grado_id][Alumno.seccion]',
                'data'=>array(
                        '<br/>[Alumno.nivel_id] - [Alumno.grado_id] [Alumno.seccion]'=>array('colspan'=>3,'strong'=>true,'border'=>array('bottom'=>true)))),
                'aulaFooter'=>array('type'=>'footer','parent'=>'master','group'=>'aulaGroup','data'=>array(
                        'TOTAL '=>array('colspan'=>2,'align'=>'left'),
                        '[BAND.aulaFooter.TOTALS.2]'
                ),'strong'=>true,'border'=>array('top'=>true),'align'=>'right')
        )
    ));
?>